<page-header [title]="title" [subTitle]="subTitle"></page-header>

<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">标题:</label>
                <div class="col-sm-10">
                    <input type="text" [(ngModel)]="news.title" class="form-control" placeholder="标题">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">简介:</label>
                <div class="col-sm-10">
                    <input type="text" [(ngModel)]="news.brief" class="form-control" placeholder="简介">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label text-right">封面图:</label>
                <div class="col-sm-10">
                    <input type="file" id="imgfile" (change)="uploadNewsImage($event)" class="form-control" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <ng-editor></ng-editor>
                </div>
            </div>

            <div class="form-group">
                <div class="col-xs-2">
                    <button type="button" (click)="okBtn()" class="btn btn-primary">保存</button>
                </div>
            </div>
        </div>
    </div>
</div>